//
//  XSInfoView.h
//  XSInfoView
//
//  Created by 薛纪杰 on 3/16/16.
//  Copyright © 2016 薛纪杰. All rights reserved.
//

#import <UIKit/UIKit.h>
/**<
 
 吐丝
 
 */
typedef NS_ENUM(NSInteger, XSInfoViewLayoutStyle) {
    XSInfoViewLayoutStyleVertical = 0,
    XSInfoViewLayoutStyleHorizontal
};

@interface XSInfoViewStyle : NSObject

@property (strong, nonatomic) UIColor *backgroundColor;

@property (strong, nonatomic) UIImage *image;
@property (assign, nonatomic) CGSize imageSize;

@property (strong, nonatomic) NSString *info;
@property (assign, nonatomic) CGFloat fontSize;
@property (strong, nonatomic) UIColor *textColor
;
@property (assign, nonatomic) CGFloat maxLabelWidth;

@property (assign, nonatomic) NSInteger durationSeconds;
@property (assign, nonatomic) XSInfoViewLayoutStyle layoutStyle;

@end

@interface XSInfoView : UIView

@property (strong, nonatomic) UILabel *infoLabel;
@property (strong, nonatomic) UIImageView *infoImageView;

+ (void)showInfo:(NSString *)info onView:(UIView *)superView;
+ (void)showInfoWithStyle:(XSInfoViewStyle *)style onView:(UIView *)superView;
- (void)addCenterCons;
@end

//            XSInfoViewStyle *style = [[XSInfoViewStyle alloc] init];
//            style.info = @"提示文字";
////            style.image = [UIImage imageNamed:@"action_success"];
//            style.layoutStyle = XSInfoViewLayoutStyleHorizontal;
//            [XSInfoView showInfoWithStyle:style onView:self.view];
